home *** CD-ROM | disk | FTP | other *** search
/ Computer Inter@ctive 16 / Computer Interactive cdrom 16 - dic 98.iso / zdnetit / content / ARACHE.ZIP / KLOS.TPL < prev    next >
Encoding:
Text File  |  1998-04-22  |  1.5 KB  |  54 lines

  1. @echo off
  2. break=off
  3. rem --- Arachne is *.BAT which will make your PC survive to 21st century ---
  4. rem --- (c)1996,1997 xChaos software, URL: http://www.naf.cz/arachne/    ---
  5. if (%1)==(-o) goto online
  6. if (%1)==(-u) goto unload
  7. if not (%1)==() goto start
  8. if not exist pppmenu.exe goto start
  9. if (%KLOS%)==(LOADED) goto start
  10. rem --- These KLOS PPP resident utilities can be loaded to high memory:  ---
  11. rem Try 'lh lsl.com' or 'hiload lsl.com' (hiload is used in OpenDOS)
  12. lsl.com
  13. rem Try 'lh ppp.exe' or 'hiload ppp.exe'
  14. ppp.exe
  15. rem Try 'lh ipstub.exe 0x60' or 'hiload ipstub.exe 0x60'
  16. ipstub.exe 0x60
  17. set KLOS=LOADED
  18. rem --- This batch file works with core.exe version 1.0 beta 8 or higher ---
  19. :start
  20. core.exe %1 %2
  21. if errorlevel 128 goto end
  22. if errorlevel 64 goto execute
  23. :again
  24. core.exe fatal.ah
  25. if errorlevel 128 goto end
  26. if errorlevel 64 goto execute
  27. goto error
  28. :online
  29. if exist pppwat.exe pppwat.exe
  30. goto start
  31. :unload
  32. if exist ppp.log goto termin
  33. if not exist pppmenu.exe goto end
  34. ipstub.exe 0x60 unload
  35. ppp.exe u
  36. lsl.com u
  37. set KLOS=
  38. goto end
  39. :termin
  40. termin.com 0x60
  41. del ppp.log
  42. goto end
  43. :execute
  44. $roura$.bat
  45. :error
  46. echo Abnormal Arachne termination. Please reboot system and/or restart Arachne.
  47. :end
  48. if exist $roura?.bat del $roura?.bat
  49. if exist *._$b del *._$b
  50. if exist ip-up.bat del ip-up.bat
  51. if exist ppp.log echo Type 'arachne -u' to terminate SLIP/PPP connection.
  52. if (%KLOS%)==(LOADED) echo Type 'arachne -u' to unload KlosPPP from memory.
  53. echo.
  54.